<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximun-scale=1.0,user-scalable=0">
    <title>Title</title>
    <style>
        *{
            padding:0;
            margin: 0;
        }

        #container{
            background-color: orange;
            color: white;
            font-size: 30px;
            text-align: center;
        }
    </style>

    <script>
        window.onload = function () {
            var container = document.getElementById("container");
            container.style.height = document.body.scrollHeight+"px";
        }
    </script>
</head>
<body>
    <div id="container">英雄联盟LOL</div>
</body>
</html>